<template>
<div></div>
</template>

<script>
import  {openid} from "@/api/user";
import {getLastPath} from "@/util/cookie";
export default {
  created() {
    let code = this.$route.query.code
    openid(code)
    if(getLastPath()){
      this.$router.replace(getLastPath())
    }else {
      this.$router.replace("/home")
    }
  }
}
</script>

<style scoped>

</style>